package com.itjiange.duck;

import com.itjiange.callbehavior.ZhiCallBehavior;
import com.itjiange.flybehavior.NoFlyBehavior;

/**
 * @author ItJianGe
 * @data 2024/8/15 10:14
 */
public class RedDuck extends Duck {

    public RedDuck () {
        flyBehavior = new NoFlyBehavior();
        callBehavior = new ZhiCallBehavior();
    }

    @Override
    public void display() {
        System.out.println("我是一直红鸭子。。。");
    }
}
